<?php $this->load->view('common/pagehead')?>
<?php $this->load->view('common/header')?>
<div class="clr-both"></div>
	  <div class="spacer-10"></div>
	  <div class="left w680"><!-- 68 div start -->
        <div class="mt10" id="deals"><!-- other deals part-->
        	<h1 class="other">Top Deals</h1>
            <ul>
            	<?php if(isset($topCouponsArray) && !empty($topCouponsArray)){ foreach($topCouponsArray as $deals){?>
            	<li><!-- box starts -->
                	<div align="center"><img src="<?php if($deals['deals_image']!=''){ echo $deals['deals_image'];}else{ echo '/public/images/products/noimage-small.png';}?>" /></div>
                    <p align="center" class="txt"><?php echo ucfirst($deals['deals_product_name']); ?></p>
                    <p align="center" class="txt" style="color:#64aa23;"><?php echo substr(ucfirst($deals['deals_name']), 0, 35); ?>...</p>
                    <div>
                    	<p class="left txt">Rs <?php echo $deals['deals_price']-(($deals['deals_price']*$deals['deals_saving'])/100); ?></p>
                        <p class="right txt" style="text-decoration:line-through;"><?php echo $deals['deals_price']; ?></p>
                        <p class="clr-both"></p>
                    </div>
                    <a href="/<?php echo $deals['deals_url'];?>" style="text-decoration:none;"><input type="button" value="See the Deal" /></a>
                    <div class="mt10" align="center"><a href="/deals/<?php echo $deals['store_url'];?>" style="font-size:14px;text-decoration:none;color:#fff;line-height:28px;">
                    	<?php if(isset($deals['store_image']) && $deals['store_image']!=''){?>
                    		<img src="<?php echo $deals['store_image'];?>" width="142" height="28" border="0"/>
                 		<?php }else{?>
                 			<div style="width:144px;height:28px;background-color:#aaa;padding:0 5px;border-radius:5px;">
                 				<div class="left"><img src="/public/images/no-cam.png" border="0" /></div>
                 				<div class="right">No Image Found</div>
                 				<div class="clr"></div>
                 			</div>
                 		<?php }?></a>
                    </div>
                </li><!-- box ends -->
                <?php }}?>
            </ul>
        </div><!-- other deals part-->
	  </div><!-- 680 div end -->
      <div class="right w300"><!-- 300 div starts-->
      <div>
      	<a href="/<?php if(isset($bannersArray[0]['banner_link']) && $bannersArray[0]['banner_link']!=''){ echo $bannersArray[0]['banner_link'];}?>" target="_blank" rel="nofollow"><?php if(isset($bannersArray[0]['banner_image']) && $bannersArray[0]['banner_image']!=''){?><img src="<?php echo $bannersArray[0]['banner_image'];?>" alt="<?php echo $bannersArray[0]['banner_alt']; ?>" width="299" height="250" border="0" /><?php }?></a>
      </div>
      <div class="mt10"><img src="/public/images/fb-wid.png" width="300" /></div>
      </div><!-- 300 div ends -->
<?php $this->load->view('common/footer');?>